#include "BasPattern.h"

int BasPattern::_countId = 0;
BasPattern::BasPattern(time_t bgnDate, time_t endDate, string weeks, string voyage)
    : _bgnDate(bgnDate), _endDate(endDate), _weeks(weeks), _voyage(voyage) {
    _id = _countId++;

    _strBgnDate = getDateStr(_bgnDate);
    _strEndDate = getDateStr(_endDate);
}

BasPattern::~BasPattern() {}

void BasPattern::print() {
    cout << "ICPPattern Id " << _id << " BgnDate: " << getDateStr(_bgnDate) << " endDate: " << getDateStr(_endDate)
         << " weeks: " << _weeks << " VOYAGE: " << _voyage << endl;
}
